package com.qn.enums;

import com.qn.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum InEnumIntEnum implements IntArrayValuable {

    APP(0, "APP"),
    PORTAL(1, "PORTAL"),
    ;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(InEnumIntEnum::getStatus).toArray();

    private final Integer status;

    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
